package com.lightheart.sphr.xiaobinggan.module.home.ui;


import android.content.Intent;
import android.widget.TextView;

import com.example.xch.scanzbar.zbar.CaptureActivity;
import com.lightheart.sphr.xiaobinggan.R;
import com.lightheart.sphr.xiaobinggan.base.BaseActivity;

import butterknife.BindView;

public class Main11Activity extends BaseActivity {

    @BindView(R.id.tv)
    TextView tv;

    @Override
    protected int getLayoutId() {
        return R.layout.activity_main11;
    }

    @Override
    protected void initInjector() {

    }

    @Override
    protected void initView() {
//        if (ContextCompat.checkSelfPermission( Main11Activity.this, Manifest.permission.CAMERA ) != PackageManager.PERMISSION_GRANTED) {
//            ActivityCompat.requestPermissions( Main11Activity.this, new String[]{Manifest.permission.CAMERA}, 1 );
//        } else {
            tv.setOnClickListener( v -> startActivity( new Intent( Main11Activity.this, CaptureActivity.class ) ) );
//        }
    }
}
